<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:msxml="urn:schemas-microsoft-com:xslt"
	xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Utils="urn:Utils"
	exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Utils">


  <xsl:output method="xml" omit-xml-declaration="yes"/>

  <xsl:param name="currentPage"/>

  <xsl:template match="/">

    <!-- start writing XSLT -->
    <xsl:param name="rootNode" select="$currentPage/ancestor-or-self::Intro" />

    <header>
      <div class="main">
        <div class="page1-boxSlider">
          <div class="head-box2" >
            <div class="head-box2-center">
              <div class="main">

                <div id="pro_slider">
                  <div class="pro_slider">

                    <xsl:if test="count($rootNode/child::Gallery/child::GalleryImage) > 0">
                      <xsl:for-each select="$rootNode/child::Gallery/child::GalleryImage">
                        <ul class="pro_items">
                          <li>
                            <img src="{Utils:GetImageUrl(./mediaUrl)}" alt="" />


                            <div class="pro_banner">

                              <xsl:value-of select="commonDescription"/>

                            </div>


                          </li>
                        </ul>
                      </xsl:for-each>
                    </xsl:if>

                  </div>

                  <a href="#" class="pro_btn pro_next pro_button2">
                    <span></span>
                  </a>
                </div>
              </div>
            </div>
            <div class="clear"></div>
          </div>
        </div>
      </div>
    </header>

  </xsl:template>

</xsl:stylesheet>